mod_perl precompiling help
mod_perl precompiling help
am 22.12.2009 00:47:03 von Jason Sonnenschein
This is a multi-part message in MIME format.
--------------050701070101020607020208
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Hello all,
We're running a perl-based web application and not seeing any speedups
running under mod_perl.
I have a startup file that is attempting to precompile much of the code
by using require for some files that are required in scripts, use for
others that are perl modules, and many scripts are preloaded with this code:
my $rlbb = ModPerl::RegistryLoader->new(package =>
'ModPerl::Registry',debug => 1);
foreach $pre (@preload_script) {
$rlbb->handler("/mod_perl/$pre", "${fp_cgi}/$pre");
$rlbb->handler("/MRcgi/mod_perl/$pre", "${fp_cgi}/$pre");
}
I can see in the mod perl status page that they are in fact
precompiled. The scripts show up in the status page " Compiled registry
scripts grouped by their handler" and the requires show up in
PerlRequire'd Files. But the scripts actually run slower when I turn
mod_perl on than when it is off. Is there something I'm doing wrong
here?
Thanks,
Jason
--------------050701070101020607020208
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Hello all,
We're running a perl-based web application and not seeing any speedups
running under mod_perl.
I have a startup file that is attempting to precompile much of the code
by using require for some files that are required in scripts, use for
others that are perl modules, and many scripts are preloaded with this
code:
my $rlbb = ModPerl::RegistryLoader->new(package =>
'ModPerl::Registry',debug => 1);
foreach $pre (@preload_script) {
$rlbb->handler("/mod_perl/$pre", "${fp_cgi}/$pre");
$rlbb->handler("/MRcgi/mod_perl/$pre", "${fp_cgi}/$pre");
}
I can see in the mod perl status page that they are in fact
precompiled. The scripts show up in the status page "
Compiled registry scripts grouped by their handler" and the requires
show up in
style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Times; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;">
href="/perl-status?script">PerlRequire'd Files. But the scripts
actually run slower when I turn mod_perl on than when it is off. Is
there something I'm doing wrong here?
Thanks,
Jason
style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Times; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;">
--------------050701070101020607020208--
Re: mod_perl precompiling help
am 22.12.2009 18:13:33 von Perrin Harkins
On Mon, Dec 21, 2009 at 11:47 PM, Jason Sonnenschein wrote:
> We're running a perl-based web application and not seeing any speedups
> running under mod_perl.
Usually that means you have a configuration problem. Can you check if
your scripts are running under mod_perl by looking at $ENV{MOD_PERL}
in one of them?
- Perrin
Re: mod_perl precompiling help
am 22.12.2009 18:15:46 von Jason Sonnenschein
On 12/22/09 10:13 AM, Perrin Harkins wrote:
> On Mon, Dec 21, 2009 at 11:47 PM, Jason Sonnenschein wrote:
>
>> We're running a perl-based web application and not seeing any speedups
>> running under mod_perl.
>>
> Usually that means you have a configuration problem. Can you check if
> your scripts are running under mod_perl by looking at $ENV{MOD_PERL}
> in one of them?
>
> - Perrin
>
>
>
I'll doublecheck with that, but I can say that when I switch the machine
to running mod_perl, I see httpd rather than the scripts in "top" and
"ps" output (which seems to me that it's running under mod_perl)
Jason
Re: mod_perl precompiling help
am 22.12.2009 18:19:56 von Jason Sonnenschein
On 12/22/09 10:13 AM, Perrin Harkins wrote:
> On Mon, Dec 21, 2009 at 11:47 PM, Jason Sonnenschein wrote:
>
>> We're running a perl-based web application and not seeing any speedups
>> running under mod_perl.
>>
> Usually that means you have a configuration problem. Can you check if
> your scripts are running under mod_perl by looking at $ENV{MOD_PERL}
> in one of them?
>
> - Perrin
>
>
>
ENV{MOD_PERL} returns "mod_perl/2.0.4"
Re: mod_perl precompiling help
am 23.12.2009 18:50:42 von Perrin Harkins
On Tue, Dec 22, 2009 at 12:19 PM, Jason Sonnenschein wrote:
> ENV{MOD_PERL} returns "mod_perl/2.0.4"
Ok, they are running under mod_perl then. It's pretty much unheard of
for a script to run slower under mod_perl than CGI. There may be
something serious wrong, like you don't have enough memory for the
configuration you're using. Is the machine going into swap?
- Perrin
Re: mod_perl precompiling help
am 23.12.2009 19:25:17 von ispyhumanfly
--000e0cd609d6c4906e047b697145
Content-Type: text/plain; charset=UTF-8
unsubscribe
On Wed, Dec 23, 2009 at 12:50 PM, Perrin Harkins wrote:
> On Tue, Dec 22, 2009 at 12:19 PM, Jason Sonnenschein
> wrote:
> > ENV{MOD_PERL} returns "mod_perl/2.0.4"
>
> Ok, they are running under mod_perl then. It's pretty much unheard of
> for a script to run slower under mod_perl than CGI. There may be
> something serious wrong, like you don't have enough memory for the
> configuration you're using. Is the machine going into swap?
>
> - Perrin
>
--
ispyhumanfly [dan.stephenson]
--000e0cd609d6c4906e047b697145
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
unsubscribe
On Wed, Dec 23, 2009 at 12:50=
PM, Perrin Harkins
<
com">pharkins@gmail.com> wrote:
_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:=
1ex;">
On Tue, Dec 22, 2009 at 12:19 PM, Jason Sonnenschein <=
> wrote:
> ENV{MOD_PERL} returns "mod_perl/2.0.4"
Ok, they are running under mod_perl then. Â It's pretty much =
unheard of
for a script to run slower under mod_perl than CGI. Â There may be
something serious wrong, like you don't have enough memory for the
configuration you're using. Â Is the machine going into swap?
- Perrin
--
ispyhumanfly [da=
n.stephenson]
--000e0cd609d6c4906e047b697145--